<?php $config_data=WebConfig::getData(); ?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
<!--    <link rel="icon" href="../../favicon.ico">-->

    <title><?php echo $config_data['web_name_cn']; ?></title>

    <!-- Bootstrap core CSS -->
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/css/dashboard.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="<?php echo Yii::app()->request->baseUrl; ?>/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.min.js"></script>
</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#"><?php echo $config_data['web_name_cn']; ?></a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="http://<?php echo $_SERVER['SERVER_NAME']?>">官网首页</a></li>
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/login/UserOut">退出</a></li>
            </ul>
        </div>
    </div>
</nav>

<div class="container-fluid">

    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar">
                <li <?php if($this->left_list_on==10){?> class="active" <?php } ?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/admin/message">留言管理</a></li>
                <li <?php if($this->left_list_on==11){?> class="active" <?php } ?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/admin/site">首页管理</a></li>
                <li <?php if($this->left_list_on==3){?> class="active" <?php } ?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/admin/type">一级产品类型</a></li>
                <li <?php if($this->left_list_on==9){?> class="active" <?php } ?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/admin/subType">二级产品类型</a></li>
                <li <?php if($this->left_list_on==2){?> class="active" <?php } ?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/admin/product">产品管理</a></li>
                <li <?php if($this->left_list_on==4){?> class="active" <?php } ?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/admin/newsType">新闻类型</a></li>
                <li <?php if($this->left_list_on==5){?> class="active" <?php } ?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/admin/news">新闻管理</a></li>
                <li <?php if($this->left_list_on==6){?> class="active" <?php } ?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/admin/aboutUs">关于我们</a></li>
                <li <?php if($this->left_list_on==7){?> class="active" <?php } ?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/admin/server">服务中心</a></li>
                <li <?php if($this->left_list_on==8){?> class="active" <?php } ?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/admin/contactUs">联系我们</a></li>
            </ul>
        </div>

        <?php echo $content; ?>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>


